package Iterator;

public class Client {
	public static void main(String[] args){
		StudentSystem system  = new StudentSystem();
		system.add(new Student("34", 2));
		system.add(new Student("34", 1));
		system.add(new Student("34", 3));
		
		Iterator iterator = system.getIterator();
		while(iterator.hasNext()){
			System.out.println(iterator.next());
		}
		
	}

}
